package com.etone.smartAudit.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "PUumUserinfoVO", description = "组织人员视图")
public class PUumUserinfoVO {
    //    select org.ouName,user.fullName from p_uum_userinfo user left join p_uum_organizationinfo org
//    on user.departmentID=org.OUGUID
    @ApiModelProperty(value = "人员名称")
    private String fullName;

    @ApiModelProperty(value = "用户身份唯一标识，2 位公司代号+8 位员工编号, 代维人员为一个 10  位的数字编码，UIM则以99开头的10位数字编号")
    private String employee;

    @ApiModelProperty(value = "所属公司")
    @TableField("company")
    private String company;

    @ApiModelProperty(value = "移动电话")
    private String telePhone;

    @ApiModelProperty(value = "办公邮件")
    private String email;

    @ApiModelProperty(value = "联系地址")
    private String address;

    @ApiModelProperty(value = "组织中的 DN(portal)")
    private String orgDN;

    @ApiModelProperty(value = "用户id")
    private String userID;

    @ApiModelProperty(value = "编制部门 PortalID 数据")
    private String oUGUID;

    @ApiModelProperty(value = "用户职称等级")
    private String userGrade;
    
    @ApiModelProperty(value = "用户所在部门")
    private String department;


    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        PUumUserinfoVO other = (PUumUserinfoVO) obj;
        if (other.getOUGUID() == null) {
            return false;
        }
        if (userID == null) {
            if (other.userID != null) {
                return false;
            }
        } else if (!oUGUID.equals(other.userID)) {
            return false;
        }
        return true;
    }
}
